Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git example for release:perform #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ViliusS
Copy link

@ViliusS ViliusS commented Apr 30, 2022

Git doesn't support passing tags in the URL, however I have found that passing -Dtag does the trick.

This still will work only with 2.3.2 and earlier versions because of https://issues.apache.org/jira/browse/MRELEASE-839 , but at least nobody will have to spent 5 hours like me, trying to find why it doesn't work.

@slawekjaranowski
Copy link
Member

Thanks for PR.

I don't see tag parameters for perform goal https://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html
So how it works ...

@ViliusS
Copy link
Author

ViliusS commented May 3, 2022

Good question. I have no idea how this works, it's just what I found only working with 2.3.X series. It still doesn't work with 3.0.0-M5 or 2.2.X.

I guess -Dtag passes the tag to SCM sub-module which is used in 2.3 series, and then sub-module passes this on to git clone command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants